#ifndef LIGHT_SEND_CONFIG_H
#define LIGHT_SEND_CONFIG_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "../system_Config.h"
#include "../mode_Config/direction_turn_on_config.h" 


typedef enum
{
    LIGHT_TYPE_NONE, //0
    WS2812_RGB, //1
    WS2812_GBR, //2
    WS2812_BRG,
    LIGHT_TYPE,
}LIGHT_TYPE_NUM; //用于列举 现有的灯珠类型

#define WS2812_RGB_SPEED 8*1000*1000
#define WS2812_RGB_TH           0xFC //11111100
#define WS2812_RGB_TL          0XC0 //11000000



#define WS2812_GRB_SPEED 8*1000*1000
#define WS2812_GRB_TH           0xFC //11111100
#define WS2812_GRB_TL          0XC0 //11000000

#define WS2812_BRG_SPEED 8*1000*1000
#define WS2812_BRG_TH           0xFC //11111100
#define WS2812_BRG_TL          0XC0 //11000000


typedef struct 
{
    void (*handle)(u8 *,u8 *,u16);
}LIGHT_TRANSITION_SEND_HANDLE_CONFIG;


typedef struct 
{
    u32 speed; //spi波特率
    u8 high_soding; //高转换编码
    u8 low_coding ; //低转换编码
}LIGHT_SEND_CONFIG;


extern LIGHT_SEND_CONFIG light_send_config[];
extern LIGHT_TRANSITION_SEND_HANDLE_CONFIG light_transition_send_handle[];
















#endif